package hierarchy

import (
	"gitee.com/g-qs/gin-vue-admin/server/api/v1"
	"gitee.com/g-qs/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type FdArticleVideoRouter struct {
}

// InitFdArticleVideoRouter 初始化 FdArticleVideo 路由信息
func (s *FdArticleVideoRouter) InitFdArticleVideoRouter(Router *gin.RouterGroup, pubRouter *gin.RouterGroup) {
	fdArticleVideoRouter := Router.Group("fdArticleVideo").Use(middleware.OperationRecord())
	fdArticleVideoRouterPub := pubRouter.Group("fdArticleVideo")
	var fdArticleVideoApi = v1.ApiGroupApp.HierarchyApiGroup.FdArticleVideoApi
	{
		fdArticleVideoRouter.POST("createFdArticleVideo", fdArticleVideoApi.CreateFdArticleVideo)             // 新建FdArticleVideo
		fdArticleVideoRouter.DELETE("deleteFdArticleVideo", fdArticleVideoApi.DeleteFdArticleVideo)           // 删除FdArticleVideo
		fdArticleVideoRouter.DELETE("deleteFdArticleVideoByIds", fdArticleVideoApi.DeleteFdArticleVideoByIds) // 批量删除FdArticleVideo
		fdArticleVideoRouter.PUT("updateFdArticleVideo", fdArticleVideoApi.UpdateFdArticleVideo)              // 更新FdArticleVideo
		fdArticleVideoRouter.GET("like", fdArticleVideoApi.FdArticleLike)                                     // 喜欢Video
		fdArticleVideoRouter.GET("collect", fdArticleVideoApi.FdArticleCollect)                               // 收藏Video
	}
	{
		fdArticleVideoRouterPub.GET("findFdArticleVideo", fdArticleVideoApi.FindFdArticleVideo)       // 根据ID获取FdArticleVideo
		fdArticleVideoRouterPub.GET("getFdArticleVideoList", fdArticleVideoApi.GetFdArticleVideoList) // 获取FdArticleVideo列表
	}
}
